/**
* A program to allow students to try out different
* String methods.
* @author Bijan Tajmir
* @version 2/18/2015
*/
public class StringExplorer
{
public static void main(String[] args)
{
String sample = "The quick brown fox jumped over the lazy dog.";
// Demonstrate the indexOf method.
int position = sample.indexOf("quick");
System.out.println ("sample.indexOf(\"quick\") = " + position);
// Demonstrate the toLowerCase method.
String lowerCase = sample.toLowerCase();
System.out.println ("sample.toLowerCase() = " + lowerCase);
System.out.println ("After toLowerCase(), sample = " + sample);
// Try other methods here:
}
}